<%@ page language="java" contentType="application/vnd.ms-excel;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="application/vnd.ms-excel; charset=utf-8" />
	<title>青鸟租房 - 首页</title>
	<link type="text/css" rel="stylesheet" href="css/style.css" />
	<script type="text/javascript" src="scripts/function.js"></script>
	<script type="text/javascript">
		//window.onload = function(){
		//bindSelector("s-price-l", "s-price-o", "s-position-o", "s-style-o", "s-area-l", "s-area-o", "s-update-o", "s-update-l");
		//}
	</script>
</head>
<body>

<div class="main wrap">
	<table class="house-list">
	<c:if test="${requestScope.result ne null}">	
	<c:forEach items="${requestScope.result}" var="house" varStatus="status">
		<c:if test="${status.count%2 != 0}">
		<tr>

			<td>
				<dl>
					<dt>${house.title}</dt>
					<dd>
						${house.street.district.name}区${house.street.name},${house.floorage }平米<br />
						联系方式：${house.contact }	
					</dd>
				</dl>
			</td>
			<td class="house-type">${house.type.name }</td>
			<td class="house-price"><span>${house.price }</span>元/月</td>
		</tr>
		</c:if>
		<c:if test="${status.count%2 == 0}">
		<tr class="odd">

			<td>
				<dl>
					<dt>${house.title}</dt>
					<dd>
						${house.street.district.name}区${house.street.name},${house.floorage }平米<br />
						联系方式：${house.contact }				
					</dd>
				</dl>
			</td>
			<td class="house-type">${house.type.name }</td>
			<td class="house-price"><span>${house.price }</span>元/月</td>
		</tr> 
		</c:if>
		
    </c:forEach>
    </c:if>   
  	<c:if test="${empty requestScope.result}">
    	<tr><c:out value="无租房信息"></c:out></tr> 
    </c:if>
	</table>

</div>
</body>
</html>


